<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse;font-size: 14px;width: 1200px;margin: auto}
        table,th,td{border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<center>
    <span style="color: darkslategray;font-size: 30px">欢迎<span style="color: darkslategray;font-size: 30px">[[${session.username}]]</span>光临</span>
    <span><a th:href="@{/login/loginto}">退出</a></span>
</center>
    <table class="list">
        <center><a th:href="@{/bumen/toadd}">添加部门</a></center>
        <center><a th:href="@{/company/findAll}">返回员工信息表</a></center>
        <tr>
            <th>部门编号</th>
            <th>部门名称</th>
            <th>创建日期</th>
            <th colspan="2">操作</th>
        </tr>

        <tr th:each="bumen : ${list}">
            <td th:text="${bumen.bid}"></td>
            <td th:text="${bumen.bname}"></td>
            <td th:text="${#dates.format(bumen.createdate,'yyyy-MM-dd')}"></td>
            <td><a th:href="@{/bumen/toupdate(bid=${bumen.bid})}">修改</a></td>
            <td><a th:href="@{/bumen/del(bid=${bumen.bid})}">删除</a></td>
        </tr>
    </table>
</body>
</html>